package com.boyunv.adapter.example02;/*
 *@description
 *
 *@author boyunv
 *@create 2023/7/23 14:22
 *@version 1.0
 */

import com.boyunv.adapter.example01.*;

public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard=new SDCardImpl();
        System.out.println(computer.read(sdCard));
        System.out.println("==============================");
        TFCard tfCard=new TFCardImpl();
        SDAdapterTF2 adapterTF2=new SDAdapterTF2(tfCard);
        System.out.println(computer.read(adapterTF2));
    }
}
